package net.dopan.pigframe.demo.service.impl.ribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class ActivityServiceRibbon {
    @Autowired
    RestTemplate restTemplate;

    public String getActivityDetail(String activityId,String userId) {

        return restTemplate.getForObject("http://ACTIVITYSERVER/userActivityCenter/getActivityDetail?userId="+userId+"&activityId="+activityId, String.class);
    }

}
